package com.example.application.bean;

import java.io.Serializable;

/**
 * 用户类
 */
public class User implements Serializable {
    //用户id
    private Integer id;
    //登录名
    private String loginName;
    //密码
    private String password;
    //电话
    private String telNum;
    //邮箱
    private String email;
    //用户名字
    private String name;
    //用户身份，如平台管理员，供应商管理员，门店管理员
    private String identity;
    //状态，如申请中，可用，不可用
    private String state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTelNum() {
        return telNum;
    }

    public void setTelNum(String telNum) {
        this.telNum = telNum;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", telNum='" + telNum + '\'' +
                ", email='" + email + '\'' +
                ", name='" + name + '\'' +
                ", identity='" + identity + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
